<%--
  Created by IntelliJ IDEA.
  User: 11875
  Date: 2021/10/14
  Time: 11:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" href="/css/homepage.css">
    <link rel="stylesheet" href="/css/homepageheder.css">
    <link rel="stylesheet" href="/css/bootstrap.css">

    <style>
        .message{
            margin: 30px 0 0 30px;
        }
    </style>
</head>
<body>
<div class="heder">
    <div class="title">
        <div class="title_t">
            <span>宿 舍 管 理 系 统</span>
        </div>
        <div class="title_r">
            <%--            <div>--%>
            欢迎您！！！
            <c:if test="${user.typeid == 1}">
                班主任老师
            </c:if>
            <c:if test="${user.typeid == 2}">
                宿管老师
            </c:if>
            ${user.uname}
            <%--            </div>--%>
            <a href="./teacherInfo.html">个人信息</a>
            <span>|</span>
            <a href="./updateTeacherInfo.html">修改个人信息</a>
            <span>|</span>
            <a href="/user/updatepasswordpage">修改密码</a>
            <span>|</span>
            <a href="/user/logout">退出</a>
        </div>
    </div>
</div>
<div class="content">
    <div>
        欢迎您！！！
        <c:if test="${user.typeid == 1}">
            班主任老师
        </c:if>
        <c:if test="${user.typeid == 2}">
            班主任老师
        </c:if>
        ${user.uname}

    </div>
    <div class="info">
        <h3>信息</h3>
        <c:if test="${user.typeid == 1}">
            <p>
                您当前管理了 ${user.classesnum} 个班级，共计有学生 ${user.studentnum} 人
            </p>
            <p>
                <a href="/classes/classeslistbyteacher/1/3.html">查看班级</a> | <a href="udentudentlistbyteacher">查看学生</a>
            </p>
        </c:if>
        <c:if test="${user.typeid == 2}">
            <p>
                您当前管理了 ${user.roomsnum} 个宿舍房间，共计有学生 ${user.studentnum} 人
            </p>
            <p>
                <a href="/room/roomsbypage/1/3.html">查看宿舍</a> | <a href="udentudentlistbyrooms">查看学生</a>
            </p>
        </c:if>


        <div class="message">
            <ul>
                <c:forEach items="${loginfoList}" var="loginfo">
                    <li>${loginfo.info}</li>
                </c:forEach>
            </ul>
        </div>
    </div>
</div>
</div>

<script src="/js/jquery-3.6.0.min.js"></script>
<script src="/js/bootstrap.js"></script>
</body>
</html>
